package com.class05.j_polymorphic;

public class TestMain {
    public static void main(String[] args) {

        NoteBook noteBook = new NoteBook();
        Mouse mouse = new Mouse();
        // 实现类可以调用接口中的默认方法与静态方法，同时实现类可以通过当前类名.属性名获取到接口中属性值

        mouse.test();
        System.out.println(Mouse.a);
        noteBook.start();
        noteBook.useUSB(mouse);
        noteBook.stop();
        System.out.println("--------------------------");
        KeyBoard keyBoard = new KeyBoard();
        noteBook.start();
        noteBook.useUSB(keyBoard);
        noteBook.stop();

        USB.test2();

    }
}
